package com.yyg.boot.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.support.ConfigurableWebBindingInitializer;

/**
 * @Description ConfigurableWebBindingInitializer的用法,只需要配置这个bean,就可以自动失效Date与String
 * 之间的类型转换了,非常简单.
 * @Author 一一哥Sun
 * @Date Created in 2020/3/24
 */
@Configuration
public class WebDataBindConfig {

    @Bean
    ConfigurableWebBindingInitializer configurableWebBindingInitializer(){
        return new ConfigurableWebBindingInitializer();
    }

}
